<template>
<div>
  <!-- <ul>
    <li v-for="item in list" :key="item._id">
       <nuxt-link :to="'/list/'+item._id"> {{item.name}}</nuxt-link>
    </li>
  </ul> -->
  <div class="flex1">
    <Box-item v-for="item in list" :key="item._id" :data="item" :env="env"></Box-item>
        
  </div>
</div>
</template>
<script>
import axios from "../../tools/axios";
export default {
  async asyncData({ store, params,error,env }){
    var t= await axios.post('/new/list',{currentPage:1,pageSize:10});
    return {list:t.data.list,env:env}
  }
}
</script>
